package com.example.ql.express.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xuweizhi
 * @since 2021/10/28 16:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BabyConfig {

    private VitalSign vitalSign;

    private Disease disease;

    private Wound wound;


    public static BabyConfig buildBabyConfig() {
        BabyConfig babyConfig = new BabyConfig();
        Disease disease = new Disease();
        disease.setPatientType(2);

        VitalSign vitalSign = new VitalSign();
        vitalSign.setBreathe(30);
        vitalSign.setSystolicPressure(220);

        Wound wound = new Wound();
        wound.setScore(113);
        babyConfig.setWound(wound);

        babyConfig.setVitalSign(vitalSign);
        babyConfig.setDisease(disease);
        return babyConfig;
    }

}
